﻿<Window x:Class="ContestMeter.Participants.UI.ChangeNameView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Анкета участника" MinHeight="350" MinWidth="450" Topmost="True" WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow">
    <StackPanel>
        <StackPanel.Resources>
            <Style TargetType="TextBlock">
                <Setter Property="Margin" Value="3 5"/>
            </Style>
        </StackPanel.Resources>
        <Label>Фамилия:</Label>
        <TextBox Text="{Binding Path=Participant.LastName,ValidatesOnDataErrors=True}"/>
        <Label>Имя:</Label>
        <TextBox Text="{Binding Path=Participant.FirstName,ValidatesOnDataErrors=True}"/>
        <Label>Отчество:</Label>
        <TextBox Text="{Binding Path=Participant.MiddleName}"/>
        <Label>Класс (число от 8 до 11):</Label>
        <TextBox Text="{Binding Path=Participant.Grade,ValidatesOnDataErrors=True}"/>
        <Label>Школа:</Label>
        <TextBox Text="{Binding Path=Participant.School,ValidatesOnDataErrors=True}"/>
        <Label>Город:</Label>
        <TextBox Text="{Binding Path=Participant.HomeTown}"/>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
        <Button Margin="3" Width="75" Height="25" Command="{Binding SaveCommand}">Сохранить</Button>
        </StackPanel>
    </StackPanel>

</Window>
